import 'package:get/get.dart';

import '../pages/login/login.dart'; // 引入登录页面
import '../pages/login/forgot_password_step_one_page.dart'; // 引入忘记密码页面
import '../pages/login/forgot_password_step_two_page.dart'; // 引入忘记密码页面
import '../pages/login/register_page.dart'; // 引入注册页面
import '../pages/tabs/tabs.dart';
import '../pages/book/book_detail.dart';
import '../pages/book/book_search.dart';

import 'bindings.dart';

class AppRoutes {
  static const String login = '/';
  static const String forgotPasswordStepOne = '/forgot-password/step-one';
  static const String forgotPasswordStepTwo = '/forgot-password/step-two';
  static const String register = '/register';
  static const String tabs = '/tab';
  static const String bookDetail = '/book/detail';
  static const String bookSearch = '/book/search';

  static final routes = [
    GetPage(name: login, page: () => LoginPage(), binding: LoginBinding()),
    GetPage(
      name: forgotPasswordStepOne,
      page: () => ForgotPasswordStepOnePage(),
    ),
    GetPage(
      name: forgotPasswordStepTwo,
      page: () => ForgotPasswordStepTwoPage(),
    ),
    GetPage(name: register, page: () => RegisterPage()),
    GetPage(name: tabs, page: () => TabsPage(), binding: TabsBinding()),
    GetPage(name: bookDetail, page: () => BookDetailPage()),
    GetPage(name: bookSearch, page: () => BookSearchPage()),
  ];
}
